package com.shigu.admin.common.vo;

import java.io.Serializable;

/**
 * 选择子
 * Created by zhaohongbo on 17/7/10.
 */
public class OptionVO implements Serializable{
    /**
     * 显示值
     */
    private String text;
    /**
     * 实际值
     */
    private String value;

    private boolean hasSelect;


    public OptionVO() {
    }

    public OptionVO(String param) {
        if(param!=null&&param.contains(":")){
            String[] kvs=param.split(":");
            this.text=kvs[0];
            this.value=kvs[1];
        }
    }

    public boolean isHasSelect() {
        return hasSelect;
    }

    public void setHasSelect(boolean hasSelect) {
        this.hasSelect = hasSelect;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
